package com.guigu.erp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.guigu.erp.dto.ManufactureDesignProcedureDto;
import com.guigu.erp.pojo.ManufactureDesignProcedure;
import com.guigu.erp.utils.PageUtils;
import com.guigu.erp.vo.DesignModuleVo;

public interface ManufactureDesignProcedureService extends IService<ManufactureDesignProcedure> {
    /**
     * 获取Id最大工序设计单的设计单的编号
     * @return
     */
    String getMaxDesignId();

    /**
     * 1.添加工序设计表
     * 2.添加工序明细设计表
     * 3.修改产品档案表工序设计标志
     * @param dto
     */
    boolean addManufactureProcess(ManufactureDesignProcedureDto dto);

    /**
     * 查询所有工序设计单表数据
     * @param vo 查询条件
     * @param pageNo 当前页
     * @param pageSize
     * @return
     */
    PageUtils<ManufactureDesignProcedure> getManufactureList(DesignModuleVo vo,Integer pageNo,Integer pageSize);


    /**
     * 查询所有工序设计单表数据
     * @param vo 查询条件
     * @param pageNo 当前页
     * @param pageSize
     * @return
     */
    PageUtils<ManufactureDesignProcedure> getAllManufactureList(DesignModuleVo vo,Integer pageNo,Integer pageSize);
}
